//-----------------------------------------------------------------------
// <copyright file="a_CatGroupService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_CatGroupService
    {
        #region a_CatGroup

        public static void Createa_CatGroup(a_CatGroup a_CatGroup)
        {            
            try
            {
                a_CatGroupDAO a_CatGroupDAO = new a_CatGroupDAO();
                a_CatGroupDAO.Createa_CatGroup(a_CatGroup);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_CatGroup(a_CatGroup a_CatGroup)
        {            
            try
            {
                a_CatGroupDAO a_CatGroupDAO = new a_CatGroupDAO();
                a_CatGroupDAO.Updatea_CatGroup(a_CatGroup);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_CatGroup(int groupID)
        {            
            try
            {
                a_CatGroupDAO a_CatGroupDAO = new a_CatGroupDAO();
                a_CatGroupDAO.Deletea_CatGroup(groupID);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_CatGroup Geta_CatGroup(int groupID)
        {            
            try
            {
                a_CatGroupDAO a_CatGroupDAO = new a_CatGroupDAO();
                return a_CatGroupDAO.Geta_CatGroup(groupID);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_CatGroupCollection Geta_CatGroupList(a_CatGroupColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_CatGroupDAO a_CatGroupDAO = new a_CatGroupDAO();
                return a_CatGroupDAO.Geta_CatGroupList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }

        public static a_CatGroupCollection Geta_CatGroupList_alphabet(string mychar, a_CatGroupColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_CatGroupDAO a_CatGroupDAO = new a_CatGroupDAO();
                return a_CatGroupDAO.Geta_CatGroupList_alphabet(mychar, orderBy, orderDirection,page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }

        public static a_CatGroupCollection Geta_CatGroupList_alphabet(string mychar, a_CatGroupColumns orderBy, OrderDirection orderDirection)
        {
            try
            {
                a_CatGroupDAO a_CatGroupDAO = new a_CatGroupDAO();
                return a_CatGroupDAO.Geta_CatGroupList_alphabet(mychar, orderBy, orderDirection);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

        public static a_CatGroupCollection Geta_CatGroupList(a_CatGroupColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {
            try
            {
                a_CatGroupDAO a_CatGroupDAO = new a_CatGroupDAO();
                return a_CatGroupDAO.Geta_CatGroupList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        #endregion
    }
}